package com.jvtd.nettyim.im.protocol;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author Created by neal.zhang
 * @date 2020/5/27 - 18:09
 */
@Data
public abstract class Packet {

    /**
     * 协议版本
     */
    @JSONField(deserialize = false, serialize = false)
    private Byte version = 1;

    //指令
    @JSONField(serialize = false)
    public abstract Byte getCommand();
}
